import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      component: () => import('@/views/home/index.vue')
    },
    {
      path: '/about',
      component: () => import('@/views/about/index.vue')
    },
    {
      path: '/detail/:id',
      component: () => import('@/views/detail/index.vue'),
      props: (route) => ({ other: 'abc' })
    }
  ]
})

export default router
